--[[
 -- *名称:DesktopLayerPart
 -- *描述:游戏层
 -- *版权:Copyright © 2016-2018 深圳市三只小熊科技有限公司 版权所有
 -- *作者:Administrator
 -- *创建日期:2017-09-25
 -- *修改日期:2017-09-25
 ]]
local CURRENT_MODULE_NAME = ...
local DesktopLayerPart = class("DesktopLayerPart", PokerPartBase) --登录模块
DesktopLayerPart.DEFAULT_PART = {}
DesktopLayerPart.DEFAULT_VIEW = "desktoplayer"

---
 -- [ctor 默认part构造方法]
 -- @DateTime 2017-09-20
 -- @param    owner [description]
 -- @param    data [description]
 -- @return    [description]
 --
function DesktopLayerPart:ctor(owner, data)
	Log.d("DesktopLayerPart:ctor");
    DesktopLayerPart.super.ctor(self, owner, data)
    self._data = data;
end


---
 -- [activate 默认激活该part调用方法]
 -- @DateTime 2017-09-20
 -- @param    data [description]
 -- @return    [description]
 --
function DesktopLayerPart:activate(data)
	Log.d("DesktopLayerPart:activate");
	DesktopLayerPart.super.activate(self, CURRENT_MODULE_NAME);
end

---
 -- [deactivate 销毁该part调用方法]
 -- @DateTime 2017-09-20
 -- @return   [description]
 --
function DesktopLayerPart:deactivate()
   DesktopLayerPart.super.deactivate(self);
end

---
 -- [getPartId 获取该part的partId]
 -- @DateTime 2017-09-20
 -- @return   [description]
 --
function DesktopLayerPart:getPartId()
	-- body
	return "DesktopLayerPart"
end
---
 -- 抖动桌面
 -- @DateTime 2017-10-31
 -- @return   [description]
 --
function DesktopLayerPart:shakeDesktop()
	self:updateView("shakeDesktop");
end
---
 -- 双击桌面
 -- @DateTime 2017-10-31
 -- @return   [description]
 --
function DesktopLayerPart:doubleDesktopClicked(  )
	self:dispatchEvent(DdzEventConfig.RESELECT_HANDCARD);
end

DesktopLayerPart.eventFuncMap = {
	[DdzEventConfig.EVENT_SHAKE_DESKTOP]		= DesktopLayerPart.shakeDesktop;
};

return DesktopLayerPart 